package com.javabase;

import java.util.HashMap;

/**
 * @Description: java类作用描述
 * @Author: Bsea
 * @CreateDate: 2019/6/8$ 20:02$
 */
public class HashMapTest {

    public static void main(String[] args) {
        HashMap h1=new HashMap();
        h1.put("4","t1");
        h1.put("20","t2");
        h1.put("36","t3");
        String tt= (String) h1.get("20");
        String s1="5478";
        char[] cs=s1.toCharArray();
        for(int i=0;i<cs.length;i++){
            //cs[0] 表示：数组cs中下标是0的位置上的值
            System.out.println(cs[i]);
            System.out.println(cs[0]);
        }
        //i就相当于上面的cs[i]i
        for(char i:cs){
            System.out.println(i);
        }
        System.out.println("**************************");
        int[] a={1,3,4,8,11,33,9};
        for(int i:a){
            System.out.println(i);
        }
    }
}
